package com.heatingcharge.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.heatingcharge.entity.unit.ResZone;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: heating_charge_server
 * User: Devin
 * Date: 2019-07-16
 * Time: 16:58
 */
@Data
public class ResHouseDTO {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 房屋编号
     */
    private String num;

    /**
     * 单元id
     */
    private Integer unitId;

    /**
     * 建筑面积
     */
    private BigDecimal buildArea;

    /**
     * 使用面积
     */
    private BigDecimal useArea;

    /**
     * 供热面积
     */
    private BigDecimal heatArea;

    /**
     * 收费面积
     */
    private BigDecimal chargeArea;

    /**
     * 层高
     */
    private BigDecimal floorHeight;

    /**
     * 层高系数
     */
    private BigDecimal floorFactor;

    /**
     * 房屋类型 1:民用 2：商用 3：公建
     */
    private Integer houseType;

    /**
     * 收费类型 1：面积 2：热计量 3：通断
     */
    private Integer chargeType;

    /**
     * 供热状态
     */
    private Integer heatStatus;

    /**
     * 是否入网 0：未入网 1：已入网
     */
    private Integer activate;

    /**
     * 入网时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date activateTime;

    /**
     * 卡号
     */
    private String cardNum;

    @TableField(exist = false)
    private Integer zoneId;

    @TableField(exist = false)
    private String zoneName;

    @TableField(exist = false)
    private Integer buildId;

    @TableField(exist = false)
    private String buildNum;

    @TableField(exist = false)
    private String unitNum;

    @TableField(exist = false)
    private Integer houseId;

    @TableField(exist = false)
    private String houseNum;

//    @TableField(exist = false)
//    private String cusName;
//
//    private Integer chargeState;
}
